package com.woniuxy.meal.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Data
@ApiModel("更新购物车中商品数量参数对象")
public class UpdateCartForm {
    @NotNull
    @Min(0)
    @ApiModelProperty("食物id")
    private Long foodId;
    @NotNull
    @Min(0)
    @ApiModelProperty("食品数量")
    private Integer count;

}
